package com.farmer.mapper;

import com.farmer.pojo.Admin;
import com.farmer.pojo.Menu;
import com.farmer.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86183
* @description 针对表【role】的数据库操作Mapper
* @createDate 2024-05-06 17:22:51
* @Entity com.farmer.pojo.Role
*/
public interface RoleMapper extends BaseMapper<Role> {
    List<Menu> selectMenusByRoleId(@Param("roleId") Integer roleId);

    List<Admin> selectAdminByRoleId(@Param("roleId") Integer roleId);

    void deleteRoleMenus(@Param("roleId") Integer roleId);

    void deleteAdminRole(@Param("roleId") Integer roleId);
}




